package com.lyk.swap;

import java.io.Serializable;

import com.lyk.swap.struts.action.BaseAction;

public abstract class ShowPrice implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1682471126915198933L;
	protected double price;
	protected double profit;

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getProfit() {
		return profit;
	}

	public void setProfit(double profit) {
		this.profit = profit;
	}
	
	public abstract String getFormatDate();
	
	public String getFormatPrice() {
		return BaseAction.format(price);
	}

	public String getFormatProfit() {
		return BaseAction.format(profit);
	}

}
